package com.faithbj.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author jrn E-mail: rinanjin@gmail.com
 * @version 0.1 
 * 创建时间：2012-6-25 下午11:11:52
 * 类说明
 */
@Entity
@Table(name = "user_log_info")
public class UserLogInfo extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	// 用户名
	private String username;
	
	// 所属机构
	private Region region;
	
	// 登陆时间
	private Date operateDate;
	
	// 操作
	private String operation;

	@Column(name = "user_name")
	public String getUsername()
	{
		return username;
	}

	@ManyToOne(targetEntity = Region.class)
	@JoinColumn(name = "region_id")
	public Region getRegion()
	{
		return region;
	}

	@Column(name = "operate_date")
	public Date getOperateDate()
	{
		return operateDate;
	}
	
	@Column(name = "operation")
	public String getOperation()
	{
		return operation;
	}

	public void setUsername(String username)
	{
		this.username = username;
	}

	public void setRegion(Region region)
	{
		this.region = region;
	}
	
	public void setOperateDate(Date operateDate)
	{
		this.operateDate = operateDate;
	}

	public void setOperation(String operation)
	{
		this.operation = operation;
	}
}
